package com.example.springboot01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("class")
@Data
@ApiModel("班级信息")
public class Class {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("专业ID")
    private Integer professorId;

    @ApiModelProperty("班级名称，不可重复")
    private String name;

    @TableField(exist = false)
    private String professorName;
}
